home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 145
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z
/
Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin
/
tools
/
sharp
/
sxwork1.lzh
/
INCLUDE
/
CONTROL.H
< prev
next >
Wrap
Text File
|
1994-02-20
|
3KB
|
161 lines
/*
* control.h X68k SX_SYSTEM ver 2.01 Copyright 1994 SHARP/First Class Technology
*/
#ifndef __CONTROL_H
#define __CONTROL_H
#ifndef __SXDEF2_H
#include <sxdef2.h>
#endif
#ifdef FORWORD
#define __PROTO_TYPE
#endif
#ifdef __STDC__
#define __PROTO_TYPE
#endif
typedef enum CDEFRscID CDEFRscID;
typedef enum CDEFCommand CDEFCommand;
typedef enum CPartCode CPartCode;
typedef struct CNTL CNTL;
/*
* コントロールマン (Control Man)
*/
#define C_DEFAULT ((void *) -1)
enum CDEFRscID {
CI_CHRBTN,
CI_RADBTN,
CI_CHKBOX,
CI_SLDVOL = 0x13,
CI_ADJBTN,
CI_SCLBRWH = 0x40,
CI_SCLBRWV,
CI_SCRLBRH,
CI_SCRLBRV
};
enum CDEFCommand {
CMD_CDRAW,
CMD_CWHERE,
CMD_CCALC,
CMD_CINIT,
CMD_CDISP,
CMD_CPOS,
CMD_CTHUMB,
CMD_CDRAG,
CMD_CTRACK
};
enum CPartCode {
C_INBTTN = 10,
C_INCHECK,
C_INDEC = 20,
C_ININC,
C_INUP = 20,
C_INDOWN,
C_INPGUP,
C_INPGDOWN,
C_INTITLE,
C_INTHUMB = 129,
C_ACTIVE = 0,
C_INACTIVE = 255
};
struct Control {
Control **next;
Window *window;
Rect rect;
char visible;
char hilite;
short value;
short min;
short max;
long (**def)();
unsigned short option;
long defData;
long (*proc)();
long user;
LASCII title;
};
struct CNTL {
Rect bounds;
short value;
short visible;
short max;
short min;
short ID;
long user;
LASCII title;
};
#ifdef __PROTO_TYPE
Control **CMOpen(Window *, Rect *, const _LASCII, BOOLEAN, int, int, int, int, long);
int CMDispose(Control **);
int CMKill(Window *);
int CMHide(Control **);
int CMShow(Control **);
int CMDraw(Window *);
int CMDrawOne(Control **);
int CMValueSet(Control **, int);
int CMValueGet(Control **);
int CMMinSet(Control **, int);
int CMMinGet(Control **);
int CMMaxSet(Control **, int);
int CMMaxGet(Control **);
int CMMove(Control **, LPoint);
int CMSize(Control **, LPoint);
int CMShine(Control **, int);
int CMFind(LPoint, Window *, Control ***);
int CMCheck(Control **, LPoint, void (*)());
Control **CMRefer(int, Window *);
int CMTitleGet(Control **, _LASCII);
int CMDraws(Window *, Region **);
int CMTitleSet(Control **, const _LASCII);
unsigned short CMOptionGet(Control **);
void CMOptionSet(Control **, unsigned short);
long CMUserGet(Control **);
void CMUserSet(Control **, long);
long CMDefDataGet(Control **);
void CMDefDataSet(Control **, long);
#undef __PROTO_TYPE
#else
Control **CMOpen();
int CMDispose();
int CMKill();
int CMHide();
int CMShow();
int CMDraw();
int CMDrawOne();
int CMValueSet();
int CMValueGet();
int CMMinSet();
int CMMinGet();
int CMMaxSet();
int CMMaxGet();
int CMMove();
int CMSize();
int CMShine();
int CMFind();
int CMCheck();
Control **CMRefer();
int CMTitleGet();
int CMDraws();
int CMTitleSet();
unsigned short CMOptionGet();
void CMOptionSet();
long CMUserGet();
void CMUserSet();
long CMDefDataGet();
void CMDefDataSet();
#endif __PROTO_TYPE
#endif __CONTROL_H